package com.guanlixitong.dao;

import com.guanlixitong.domain.Student;

import java.io.IOException;
import java.util.ArrayList;

/*
数据交互接口
 */
public interface IStudentDao {

    //根据 id找索引
    int getIndex(String sid);

    //增
    void addstudent(Student student) throws IOException;

    //删
    void deletestudent(String sid) throws IOException;

    //改
    void updatestudent(String sid, Student Student) throws IOException;

    //查
    ArrayList<Student> findAllstudent() throws IOException;

    //更新数据
    void tst() throws IOException;

    //导出学生
    void excel() throws Exception;

    //导入
    void importExcel(String s) throws Exception;

    //设置用户名
    void setUsername(String username);

    //读日志
    void readRizhi()throws Exception;

    //退出
    void exit() throws IOException;
}
